package com.ruoyi.common.core.Entity;

import com.ruoyi.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

/*
    鲜豆收支记录实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BeansAction {

    @Excel(name = "鲜豆收支记录ID")
    private int beans_action_id; //鲜豆收支记录ID
    @Excel(name = "对应的用户ID")
    private long beans_action_user_id; //对应的用户ID
    @Excel(name = "鲜豆收支类型（获取/消耗）")
    private String beans_action_type; //鲜豆收支类型（获取/消耗）
    @Excel(name = "鲜豆收支数(带符号)")
    private int beans_action_number; //鲜豆收支数(带符号)
    @Excel(name = "鲜豆收支活动描述")
    private String beans_action_describe; //鲜豆收支活动描述
    @Excel(name = "鲜豆收支时间")
    private Timestamp beans_action_time; //鲜豆收支时间


    private Map<String,Object> params; //请求参数

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
